<script type="text/javascript">{$tabs.0.groupId}= [{foreach item=i from=$tabs name=tabs}"{$i.id}"{if !$smarty.foreach.tabs.last},{/if}{/foreach}]</script>
<div class="fg_tabs" style="{$panel->tabsStyle}">
	<input type="hidden" id="{$groupId}_selectedTab" name="{$groupId}_selectedTab" value="{$selectedTab}" />
	<img src="{$templateUrl}Images/Panel/tabsLeft.png" class="fg_left" alt="" />
	<img src="{$templateUrl}Images/Panel/tabsRight.png" class="fg_right" alt="" />
	<div class="fg_text">
		{foreach item=i from=$tabs name=tabs}
		<span onclick="fg_showTab('{$i.groupId}','{$i.id}',{$i.nr})" id="{$i.id}" {if $i.selected}class="selected"{/if}><span class="fg_inner {if $smarty.foreach.tabs.iteration==1}fg_firstTab{/if}">{$i.title}</span></span>
		{/foreach}
		<span><span class="fg_inner fg_lastTab"></span></span>
	</div>
</div>